package com.thread;

import java.util.concurrent.Callable;

public class Mythread implements Callable<String> {
    private Account account;
    Mythread(Account account1, String name){
        account = account1;
    }
    @Override
    public String call() throws Exception {
        account.drawBalance();
        return Thread.currentThread().getName();
    }
}